We want to have a get_display() method on every object
that is tied to the display, so add one here.
GtkIconThemeError
gtk_icon_theme_new
gtk_icon_theme_get_for_display
+gtk_icon_theme_get_display
gtk_icon_theme_set_search_path
gtk_icon_theme_get_search_path
gtk_icon_theme_add_search_path
return icon;
}
+
+/**
+ * gtk_icon_theme_get_display:
+ * @self: a #GtkIconTheme
+ *
+ * Returns the display that the GtkIconTheme object was
+ * created for.
+ *
+ * Returns: (nullable) (transfer none): the display of @icon_theme
+ */
+GdkDisplay *
+gtk_icon_theme_get_display (GtkIconTheme *self)
+{
+ g_return_val_if_fail (GTK_IS_ICON_THEME (self), NULL);
+
+ return self->display;
+}
+
GDK_AVAILABLE_IN_ALL
GtkIconTheme *gtk_icon_theme_get_for_display (GdkDisplay *display);
+GDK_AVAILABLE_IN_ALL
+GdkDisplay * gtk_icon_theme_get_display (GtkIconTheme *self);
+
GDK_AVAILABLE_IN_ALL
void gtk_icon_theme_set_search_path (GtkIconTheme *self,
const char * const *path);